package com.design.behavior.mediator.cainiao;

/**
 * @ProjectName: design
 * @Package: com.design.behavior.mediator.cainiao
 * @ClassName: User
 * @Author: shenaiguo
 * @Description:
 * @Date: 2020/11/23 0023 21:07
 */
//步骤 2
  //      创建 user 类。
public class User {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(String name){
        this.name  = name;
    }

    public void sendMessage(String message){
        ChatRoom.showMessage(this,message);
    }
}
